﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Markup;

namespace PrintManager
{
    public class LayoutElement
    {
        public string Id { get; set; }
        public string Xaml { get; set; }

        FrameworkElement _value;
        public FrameworkElement Value { 
            get { return _value; }
            set { _value = value;  }
        }

        public FrameworkElement NewValue()
        {
            _value = (FrameworkElement)XamlReader.Parse(Xaml);
            return _value;
        }
    }
}
